package com.feng.exma.service.impl;

import cn.hutool.core.lang.Opt;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feng.common.dto.PageDto;
import com.feng.common.exceptions.ServiceException;
import com.feng.common.vo.ApiRest;
import com.feng.exma.entity.Exam;
import com.feng.exma.entity.ExamDepart;
import com.feng.exma.mapper.ExamDepartMapper;
import com.feng.exma.service.ExamDepartService;
import com.feng.exma.vo.DepartVO;
import com.feng.tiku.entity.Repo;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 考试部门 服务实现类
 * </p>
 *
 * @author feng
 * @since 2023-03-22 17:35:29
 */
@Service
public class ExamDepartServiceImpl extends ServiceImpl<ExamDepartMapper, ExamDepart> implements ExamDepartService {

    @Override
    public ApiRest departAll() {
        DepartVO departAll = baseMapper.departAll();
        if (departAll != null) {
            return ApiRest.success("查询成功", departAll);
        }
        return ApiRest.failure("查询失败", null);
    }


}
